part of 'comment_bloc.dart';



sealed class CommentEvent extends Equatable {
  const CommentEvent();

  @override
  List<Object> get props => [];
}

class LoadCommentsEvent extends CommentEvent {
  final String slug;

  const LoadCommentsEvent(this.slug);

  @override
  List<Object> get props => [slug];
}

class CreateCommentEvent extends CommentEvent {
  final String slug;
  final Comment comment;

  const CreateCommentEvent(this.slug, this.comment);

  @override
  List<Object> get props => [slug,comment];
}

class DeleteCommentEvent extends CommentEvent {
  final String slug;
  final int id;

  const DeleteCommentEvent({
    required this.slug,
    required this.id,
  });

 

  @override
  List<Object> get props => [slug, id];
}